package entityDAOs;

import java.util.List;
import java.util.Set;
import org.hibernate.LockMode;
import org.hibernate.Query;
import static org.hibernate.criterion.Example.create;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import entities.Award;

/**
 * A data access object (DAO) providing persistence and search support for Award
 * entities. Transaction control of the save(), update() and delete() operations
 * can directly support Spring container-managed transactions or they can be
 * augmented to handle user-managed Spring transactions. Each of these methods
 * provides additional information for how to configure it for the desired type
 * of transaction control.
 * 
 * @see entities.Award
 * @author MyEclipse Persistence Tools
 */

public class AwardDAO extends BaseHibernateDAO<Award,java.lang.Integer> {
	private static final Logger log = LoggerFactory.getLogger(AwardDAO.class);
	// property constants
	public static final String IMG_AWARD = "imgAward";
	public static final String TEXT = "text";

	public List<Award> findByImgAward(Object imgAward) {
		return findByProperty(IMG_AWARD, imgAward);
	}

	public List<Award> findByText(Object text) {
		return findByProperty(TEXT, text);
	}
}